package models

import "time"

type Comment struct {
	PostID     int64     `json:"post_id" db:"post_id" binding:"required"`
	ParentID   int64     `json:"parent_id" db:"parent_id" binding:"required"`
	CommentID  int64     `json:"comment_id" db:"comment_id"`
	AuthorId   int64     `json:"author_id" db:"author_id"`
	Status     int8      `json:"status" db:"status" binding:"required" `
	Content    string    `json:"content" db:"content" binding:"required"`
	CreateTime time.Time `json:"create_time" db:"create_time"`
}

type CommentDetail struct {
	AuthorId   int64     `json:"author_id" db:"author_id"`
	Status     int8      `json:"status" db:"status" `
	AuthorName string    `json:"author_name"`
	Content    string    `json:"content" db:"content" `
	CreateTime time.Time `json:"create_time" db:"create_time"`
}
